package com.wc.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wc.demo.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author WangChen 2064318526@qq.com
 * @date 2023/8/10 16:09
 */
@Mapper
public interface UserMapper extends BaseMapper<UserInfo> {

    UserInfo getByName(@Param("name") String name);

    UserInfo getUserById(@Param("id") Long id);

}
